package com.sloth.bear.dto.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sloth.bear.constant.LayoutType;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class DocDetailsVo {

    private Long id;

    private Long namespaceId;

    private Long parentId;

    private String name;

    private String content;

    private Boolean isFavorite;

    private LayoutType layoutType;

    private Integer sortNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    private List<TagVo> tags;

    /**
     * 是否显示目录
     */
    private Boolean isShowToc;

    /**
     * 权限：0 公开 1 私有
     */
    private Integer permission;

    private List<DocumentItemVo> items;
}